package visualization;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import org.freehep.util.export.ExportDialog;

import edu.uci.ics.jung.visualization.VisualizationViewer;

public class ExportActionListener implements ActionListener {
	private VisualizationViewer<String, String> wvv;

	public ExportActionListener(VisualizationViewer<String, String> vv) {
		this.wvv = vv;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		ExportDialog export = new ExportDialog();
		export.showExportDialog(wvv, "Export view as ...", wvv, "export");
	}
}
